import request from "./request";
import { uploadURL, customizeId } from './config'
export function gitDetails(data) {
    return request({
        url: "/customize/findDownloadFile",
        data: { customizeId },
        method: 'POST'
    });
}
export function findNewVoteArtistList(data) {
    return request({
        url: "/customize/findCustomizeWorksVote",
        data: { customizeId, ...data },
        method: 'POST'
    });
}
export function selectNewsList(data) {
    return request({
        url: "/news/selectNewsList",
        data,
        method: 'POST'
    });
}
export function downloadFile(fileId) {
    return request({
        url: '/download/file?fileId=' + fileId,
        data: {},
        method: 'GET'
    });
}
export function ossUploadEntryFile(data) {
    return request({
        url: '/customize/ossUploadEntryFile',
        data,
        method: 'POST',
    });
}
export function uploadFile(data) {
    return request({
        url: uploadURL,
        data,
        method: 'POST',
        type: 'upload'
    });
}
export function verification(data) {
    return request({
        url: '/certificate/verification',
        data,
        method: 'POST',
    });
}
export function selectNewsFIRST(data) {
    return request({
        url: '/news/selectNewsFIRST',
        data,
        method: 'POST',
    });
}
export function findWorksOne(data) {
    return request({
        url: '/works/findWorksOne',
        data,
        method: 'POST',
    });
}
export function worksVote(data) {
    return request({
        url: '/works/worksVote',
        data,
        method: 'POST',
    });
}
export function searchAdvertising(data) {
    return request({
        url: '/advertising/search',
        data,
        method: 'POST',
    });
}
export function selectAward(data) {
    return request({
        url: '/award/selectAward',
        data,
        method: 'POST',
    });
}
export function selectOneAward(data) {
    return request({
        url: '/award/selectOneAward',
        data,
        method: 'POST',
    });
}
//申报
export function addAwardDeclare(data) {
    return request({
        url: '/award/addAwardDeclare',
        data,
        method: 'POST',
    });
}
export function addMyFavorites(data) {
    return request({
        url: '/favorites/addMyFavorites',
        data,
        method: 'POST',
    });
}

export function findCertificate(data) {
    return request({
        url: '/certificate/findCertificate',
        data,
        method: 'POST',
    });
}